package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单明细对象 t_orders_item
 *
 * @author zhaohs
 * @date 2021-01-04
 */
public class OrdersItem extends BaseEntity
{
    private static final long serialVersionUID=1L;

    /** ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 图片 */
    @Excel(name = "图片")
    private String productImg;

    /** 规格 */
    @Excel(name = "规格")
    private String productUnit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal productPrice;

    /** 名称 */
    @Excel(name = "名称")
    private String productName;

    /** 数量 */
    @Excel(name = "数量")
    private Integer productNum;

    /** 总额 */
    @Excel(name = "总额")
    private BigDecimal productAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductImg(String productImg)
    {
        this.productImg = productImg;
    }

    public String getProductImg()
    {
        return productImg;
    }
    public void setProductUnit(String productUnit)
    {
        this.productUnit = productUnit;
    }

    public String getProductUnit()
    {
        return productUnit;
    }
    public void setProductPrice(BigDecimal productPrice)
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice()
    {
        return productPrice;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductNum(Integer productNum)
    {
        this.productNum = productNum;
    }

    public Integer getProductNum()
    {
        return productNum;
    }
    public void setProductAmount(BigDecimal productAmount)
    {
        this.productAmount = productAmount;
    }

    public BigDecimal getProductAmount()
    {
        return productAmount;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("orderNo",getOrderNo())
                .append("productId",getProductId())
                .append("productImg",getProductImg())
                .append("productUnit",getProductUnit())
                .append("productPrice",getProductPrice())
                .append("productName",getProductName())
                .append("productNum",getProductNum())
                .append("productAmount",getProductAmount())
                .toString();
    }
}
